<!-- basic scripts -->
<!--[if !IE]> -->
<script src='${base}/static/assets/js/jquery-2.0.3.min.js'></script>
<!-- <![endif]-->

<!--[if IE]>
<script src='${base}/static/assets/js/jquery-1.10.2.min.js'></script>
<![endif]-->

<!--[if !IE]> -->
<script type="text/javascript">
	window.jQuery || document.write("<script src='${base}/static/assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
</script>
<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
 window.jQuery || document.write("<script src='${base}/static/assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
</script>
<![endif]-->

<script type="text/javascript">
	if("ontouchend" in document) document.write("<script src='${base}/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="${base}/static/assets/js/bootstrap.min.js"></script>
<script src="${base}/static/assets/js/typeahead-bs2.min.js"></script>

<!-- page specific plugin scripts -->
<script src="${base}/static/assets/js/jquery.dataTables.min.js"></script>
<script src="${base}/static/assets/js/jquery.dataTables.bootstrap.js"></script>

<!-- ace scripts -->
<script src="${base}/static/assets/js/ace-elements.min.js"></script>
<script src="${base}/static/assets/js/ace.min.js"></script>

<script src="${base}/static/assets/js/jquery-ui-1.10.3.full.min.js"></script>
<script src="${base}/static/assets/js/jquery.ui.touch-punch.min.js"></script>

<script type="text/javascript">
jQuery(function($) {
	$(".nav-list li .active").parent().parent("li").attr("class","active open");
	$(".nav-list li .active").parent("ul").attr("style","display: block;");
	$(".id-btn-dialog2").on('click', function(e) {
		e.preventDefault();
		var data=eval($(this).attr("data"));
		$("#dialog-confirm").removeClass('hide').dialog({
			resizable: false,
			modal: true,
			title: "确认提示！",
			title_html: true,
			buttons: [
				{
					html: "<i class='icon-trash bigger-110'></i>&nbsp; 删除！",
					"class" : "btn btn-danger btn-xs",
					click: function() {
						var name=data.form;
						var form = document.forms[name];
						form.action=data.url;
						form.submit();
					}
				}
				,
				{
					html: "<i class='icon-remove bigger-110'></i>&nbsp; 取消",
					"class" : "btn btn-xs",
					click: function() {
						$(this).dialog( "close" );
					}
				}
			]
		});
	});
	
});
</script>
<div id="dialog-confirm" class="hide">
	<div class="space-6"></div>
	<p class="bigger-110 bolder center grey">
		<i class="icon-hand-right blue bigger-120"></i>
		您确定要删除数据?
	</p>
</div><!-- #dialog-confirm -->
